<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<jsp:include page="../common/lib.jsp"></jsp:include>
      <script src="<%=basePath%>js/system/winetype.js" type="text/javascript"></script>
</head>
<body>
       <div class="container-fluid">
				<div class="info-center">
					<div class="page-header">
                      <div class="pull-left">
						<h4>消息中心</h4>      
					</div>
                     </div>
                     
                     <div class="page-header">
                     
     酒类型
                     
                     
                     </div>
                     
					<!-- <div class="info-center-title">
					    121212121
					</div> -->
					        
      <div id="qywine" style="display:block;">
        <button   class="btn btn-primary btn-sm addBtn" onclick="winetypeadd()">新 增</button>
        <button   class="btn btn-danger btn-sm" onclick="deleteAll()">批量删除</button> 
     </div> 
					
                    <div class="clearfix"></div>
                    
					<div class="table-margin">
                      <table class="table table-bordered table-header" id="example1">
                    <thead>
		<tr>
		<th><input type="checkbox" name="allChecked" /></th>
	  	<th>id</th>
	  	<th>酒名</th>
	  	<th>所属类型</th>
	  	<th>PID</th>
	  	<th>操作</th>
	  </tr>
	  </thead>
                         <tbody>
                         
                         </tbody>
                      </table>
                    </div>
				</div>
				<div class="show-page hidden">
					<ul>
					</ul>
				</div>
				
				
				
				<!--新增页面开始-->
<div class="modal fade" id="wineadd" tabindex="-1" role="dialog"
                 aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close"
                                    data-dismiss="modal" aria-hidden="true">
                                &times;
                            </button>
                            <h4 class="modal-title" id="myModalLabel">
                                新 增
                            </h4>
                        </div>
                        <form class="form-horizontal" role="form" action="" method="post"  id="category_add">
                            <div class="modal-body">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" >ID： </label>

                                    <div class="col-sm-9">
                                        <input type="hidden"  class="form-control" id="winetypeid"  name="wineid" style="width: 250px" maxlength="15" placeholder="10个汉字以内" />

                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" >酒名： </label>

                                    <div class="col-sm-9">
                                        <input type="text"   class=" sortNumber form-control"  name="roledetail" id="winename" style="width: 250px" maxlength="15"/>
                                    </div>
                                </div>
                                
                                 <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" >所属类型： </label>

                                    <div class="col-sm-9">
                                        <input type="text"   class=" sortNumber form-control"  name="roledetail" id="winetype" style="width: 250px" maxlength="15"/>
                                    </div>
                                </div>
                           
                           <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" >PID： </label>

                                    <div class="col-sm-9">
                                        <input type="text"   class=" sortNumber form-control"  name="roledetail" id="winepid" style="width: 250px" maxlength="15"/>
                                    </div>
                                </div>
                           
                            </div>
                            
                            <div class="modal-footer">
                                <button type="button" class="btn btn-default"
                                        data-dismiss="modal">关闭
                                </button>
                                <button type="button" class="btn btn-primary" id="btnsubmit" onclick="wineaddtj()">提交
                                </button>
                            </div>
                        </form>
                    </div><!-- /.modal-content -->
                </div>
            </div>
            
 <!--修改页面开始-->
			<div class="modal fade" id="wineupdate" tabindex="-1" role="dialog"
				aria-labelledby="myModalLabel" aria-hidden="true">
				<div class="modal-dialog">


					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"
								aria-hidden="true">&times;</button>
							<h4 class="modal-title" id="myModalLabel">修改</h4>
						</div>
						<form class="form-horizontal" role="form" action="" method="post"
							id="userupdate">
							<div class="modal-body">

								<div class="form-group" style="display: none">
									<label class="col-sm-3 control-label no-padding-right">id：
									</label>

									<div class="col-sm-9">
										<input type="text" class="form-control" id="wineid1"
											name="syusernames" style="width: 250px" maxlength="15"
											placeholder="10个汉字以内" />
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right">酒名：
									</label>

									<div class="col-sm-9">
										<input type="text" class=" sortNumber form-control"
											name="syuserName" id="winename1" style="width: 250px"
											maxlength="10" />
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right">所属类型：
									</label>

									<div class="col-sm-9">
										<input type="text" class=" sortNumber form-control"
											name="roledetail" id="winetype1" style="width: 250px"
											maxlength="10" />
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right">PID：
									</label>

									<div class="col-sm-9">
										<input type="text" class=" sortNumber form-control"
											name="roledetail" id="winepid1" style="width: 250px"
											maxlength="10" />
									</div>
								</div>
							
							</div>
							<div class="modal-footer">
								<button type="button" class="btn btn-default"
									data-dismiss="modal">关闭</button>
								<button type="button" class="btn btn-primary" id="btnsubmit"
									onclick="wineupdatetj()">提交</button>
							</div>
						</form>
					</div>
					<!-- /.modal-content -->
				</div>
			</div>

     
     <!--单个删除确认对话框-->
	<div class="modal fade" id="winedelete" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<!-- data-backdrop="static" 禁止点击弹框后面内容 -->
		<form class="form-horizontal" role="form">
			<div class="modal-dialog modal-sm ">
				<!-- modal-sm 小的  modal-lg 大的 -->
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"
							aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel">提示信息</h4>
					</div>
					<div class="modal-body" style="text-align: left;">
						<h5>您确定要删除当前信息吗？</h5>
					</div>
					<div class="modal-footer">
						<!-- 
                    <button type="button" class="btn btn-default"
                            data-dismiss="modal">取消
                    </button>
                     -->
						<button type="button" class="btn btn-primary" onclick="winedeltetj()">
							确认</button>
					</div>
				</div>
				<!-- /.modal-content -->
			</div>
		</form>
		<input type="hidden" id="onedeleteid"/>
	</div>


	<!--多个删除确认对话框-->
	<div class="modal fade" id="deleteAllModal" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<form class="form-horizontal" role="form">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"
							aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel">提示信息</h4>
					</div>
					<div class="modal-body" style="text-align: left;">
						<h5>您确定要删除选中信息吗？</h5>
					</div>
					<div class="modal-footer">
						<!-- 
                    <button type="button" class="btn btn-default"
                            data-dismiss="modal">取消
                    </button>
                     -->
						<button type="button" class="btn btn-primary" onclick="deleteAlltj()">
							确认</button>
					</div>
				</div>
				<!-- /.modal-content -->
			</div>
		</form>
	</div>
     
     
</body>
</html>
